//
//  Plugin_impl.m
//  EnjoyArkUIXIOS
//
//  Created by Dordly on 2024/2/26.
//

#include "test_plugin_impl.h"

#include <memory>

// libarkui_ios中的plugin_utils.h定义了插件注册常用的接口
#include <libarkui_ios/include/plugin_utils.h>

#import "ios_test_plugin.h"

std::unique_ptr<TestPlugin> TestPlugin::Create()
{
    return std::make_unique<TestPluginImpl>();
}

void TestPluginImpl::Log(std::string log)
{
    NSString* ocLog = [NSString stringWithCString:log.c_str() encoding:NSUTF8StringEncoding];
    [[iOSTestPlugin shareinstance] log: ocLog];
}
